package JavaSE;
class Parent1 {
    Parent1(){
        System.out.println("这是父类的构造方法！");
    }
}

class Child1 extends Parent1 {
    Child1(){
        super();
        System.out.println("这是子类的构造方法！");
    }
        }

public class 继承 {
    public static void main(String[] args) {
        Child1 child = new Child1();
    }
}
